/* Copyright 203-2115 AtomWare Technology Pty Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * The flowing information must be keep 
 * AbstractAppendinceItem.java
 * appbasic
 * 2013年10月25日下午2:52:27
 * @author 屈甲康
 * QQ285799123
 * mailto:qujiakang@gmail.com
 */

package org.jackysoft.entity;

import java.io.File;




import org.jackysoft.bean.define.EntitySchemas;
import org.jackysoft.entity.base.AbstractEntity;



public abstract class AbstractAccessory extends AbstractEntity implements
		AccessoryItem, Cloneable {
	private static final long serialVersionUID = -7951370107078052074L;	
	protected String name;
	protected int type;
	protected String path;
	protected String ext;
	protected long createDate;	

	public String getExt() {
		return this.ext;
	}

	public String getName() {
		return this.name;
	}

	public String getPath() {
		return this.path;
	}

	public int getType() {
		return this.type;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setType(int type) {
		this.type = type;
	}

	public long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(long createDate) {
		this.createDate = createDate;
	}
	
	
	public String resolverRealPath(String base){
		return String.format("%s%s%s.%s", base,File.separator,this.getPath(),this.getExt());
	}
	
	
}